home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.5 KB | 37 lines | [TEXT/GEOL] |
- Item 9804879 23-April-90 16:19PDT
-
- From: NEAL Symantec, David Neal,PRT
-
- To: CHADWICK1 Attain, Dan Chadwick,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: T.Pascal3 Case statements
-
- <I think I have found a problem with using Think Pascal 3.0 with MacApp. MPW
- <defines the action for a case statement when the selector doesn't match any of
- <the case constants and when there is no otherwise clause as a no-op, whereas
- <TP 3.0 defines this (according to p. 292 of the manual) as an "error."
- <Version 2 of LSP often crashed with this type of error.
-
- <TView.ComputeSize uses the MPW behavior for variable sized views. This would
- <seem to be a problem. Can anyone (are you listening Symantec?) comment on
- <either the state of the TP 3.0 compiler perhaps a revised source converter?
-
- Dan,
-
- While THINK Pascal does define this as an error, a runtime error is only
- generated when the R (range checking) option is on. A case selector that does
- not match a case label and there being no otherwise clause would seem to
- indicate an error in the program. Sometimes it is helpful for this condition
- to be reported. But you can work around it either by adding an empty otherwise
- clause or turning off range checking {$R-} for that procedure.
-
- I'm not sure if we should try to fix this or if the fix should be in MacApp. I
- can probably be convinced if people strongly feel that we should make the
- source converter work fix this.
-
- David Neal
-
-
-